import request from '@/utils/request'

// 查询GoodCatch列表
export function listGoodCatch(query) {
    return request({
        url: '/business/goodCatch/list',
        method: 'get',
        params: query
    })
}

// 查询GoodCatch详细
export function getGoodCatch(id) {
    return request({
        url: '/business/goodCatch/' + id,
        method: 'get'
    })
}

// 新增GoodCatch
export function addGoodCatch(data) {
    return request({
        url: '/business/goodCatch',
        method: 'post',
        data: data
    })
}

// 修改GoodCatch
export function updateGoodCatch(data) {
    return request({
        url: '/business/goodCatch',
        method: 'put',
        data: data
    })
}

// 删除GoodCatch
export function delGoodCatch(id) {
    return request({
        url: '/business/goodCatch/' + id,
        method: 'delete'
    })
}
// RecloseGoodCatch
export function reClosedGoodCatch(id) {
    return request({
        url: '/business/goodCatch/reClosed/' + id,
        method: 'get'
    })
}
// 获取部门
export function getDeptList() {
    return request({
        url: '/system/dept/listDept',
        method: 'get'
    })
}
// 获取用户姓名列表
export function getUserNameList() {
    return request({
        url: '/system/user/nameList',
        method: 'get'
    })
}
